/* 山景背景容器 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.mountain-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    z-index: -2;
}

.mountain-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
    z-index: -1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    background: transparent;
    width: 400px;
    height: 600px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    opacity: 1 !important;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 0;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.4);
    border: none;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.container:hover {
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
    transform: translateY(-2px);
}

header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
}

header h1 {
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    margin: 15px;
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 10px 5px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.tab-icon {
    font-size: 18px;
    margin-bottom: 4px;
    display: block;
    line-height: 1;
}

.tab-text {
    line-height: 1.2;
    font-weight: 500;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tab-btn:hover {
    color: white;
    transform: translateY(-2px);
}

.tab-btn:hover .tab-icon {
    transform: scale(1.1);
}

.tab-btn:hover::before {
    opacity: 1;
}

.tab-btn.active {
    color: white;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.tab-btn.active .tab-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, #4a90e2, #63b3ed);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.5);
}

.tab-content {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.tab-content::-webkit-scrollbar {
    width: 6px;
}

.tab-content::-webkit-scrollbar-track {
    background: transparent;
}

.tab-content::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.tab-pane {
    display: none;
    opacity: 1;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

.tool-section h3 {
    margin-bottom: 15px;
    color: white;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

textarea, input[type="text"], input[type="datetime-local"], select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

textarea {
    height: 100px;
    resize: vertical;
    font-family: monospace;
}

textarea:focus, input[type="text"]:focus, input[type="datetime-local"]:focus, select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.15);
}

textarea::placeholder, input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

select option {
    background: rgba(50, 50, 50, 0.95);
    color: white;
}

button {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px 0 rgba(45, 55, 72, 0.3);
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(45, 55, 72, 0.4);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px 0 rgba(45, 55, 72, 0.3);
}

.button-group {
    margin-bottom: 10px;
}

.output {
    min-height: 40px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin-top: 10px;
    word-wrap: break-word;
    color: white;
}

.timestamp-section .input-group {
    margin-bottom: 20px;
}

.timestamp-section label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.current-time {
    text-align: center;
    margin-top: 20px;
}

.language-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.language-select span {
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
}

.qrcode-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.qrcode-container canvas {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

.options {
    margin-bottom: 10px;
}

.option-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: nowrap;
}

.option-group label {
    margin-right: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    min-width: 40px;
}

.hidden {
    display: none;
}

/* 消息提示样式 */
.message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 500;
    font-size: 13px;
    z-index: 10;
}

.message.error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.message.success {
    color: #51cf66;
    background: rgba(81, 207, 102, 0.15);
    border: 1px solid rgba(81, 207, 102, 0.3);
}

.message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
}

.message.error::before {
    background: #ff6b6b;
}

.message.success::before {
    background: #51cf66;
}

.error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.success {
    color: #48dbfb;
    background: rgba(72, 219, 251, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
    border: 1px solid rgba(72, 219, 251, 0.3);
}

.loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 说说页面样式 */
.moments-section {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
}

.moment-input-area {
    margin-bottom: 15px;
}

#moment-content {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    resize: vertical;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#moment-content:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 4px 20px rgba(0, 0, 0, 0.2);
}

#moment-content::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding: 0 5px;
}

#char-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.input-actions {
    display: flex;
    gap: 8px;
}

.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.primary-btn:hover::before {
    left: 100%;
}

.primary-btn:active {
    transform: translateY(0);
}

.moments-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px;
}

#filter-moments {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 12px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    flex: 1;
    margin-right: 10px;
}

#filter-moments option {
    background: #333;
    color: white;
}

.danger-btn {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: 50px;
    text-align: center;
}

#clear-all-moments::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#clear-all-moments:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.4);
}

#clear-all-moments:hover::before {
    left: 100%;
}

#clear-all-moments:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(244, 63, 94, 0.3);
}

.moments-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    max-height: 300px;
}

.moments-list::-webkit-scrollbar {
    width: 5px;
}

.moments-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.moments-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

.moments-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.empty-state {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.empty-state p {
    font-size: 14px;
    margin: 0;
}

.moment-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
}

.moment-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.moment-content {
    color: white;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.moment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.moment-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.delete-moment-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
    position: relative;
    overflow: hidden;
}

.delete-moment-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.delete-moment-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

.delete-moment-btn:hover::before {
    left: 100%;
}

.delete-moment-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 6px rgba(245, 87, 108, 0.3);
}

/* 备份列表样式 */
.backup-list {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.backup-list.hidden {
    display: none;
}

.backup-list h4 {
    margin-bottom: 12px;
    color: white;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
}

#backup-list-items {
    list-style-type: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

#backup-list-items li {
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

#backup-list-items li:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.backup-item-info {
    flex: 1;
}

.backup-date {
    font-weight: 600;
    color: white;
    font-size: 13px;
    margin-bottom: 4px;
}

.backup-browser {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
}

.backup-browser-type {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 5px;
}

.browser-chrome {
    background: rgba(66, 133, 244, 0.3);
    color: #4285F4;
}

.browser-qq {
    background: rgba(0, 122, 255, 0.3);
    color: #007AFF;
}

.browser-edge {
    background: rgba(0, 120, 215, 0.3);
    color: #0078D7;
}

.browser-firefox {
    background: rgba(255, 94, 77, 0.3);
    color: #FF5E4D;
}

.browser-unknown {
    background: rgba(158, 158, 158, 0.3);
    color: #9E9E9E;
}

/* 添加一些玻璃拟态特有的装饰元素 */
.glass-decoration {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
    z-index: -1;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
    border-radius: 0;
    pointer-events: none;
}

/* 添加一些微妙的动画效果 */
.tool-section {
    /* animation: fadeIn 0.5s ease-out; */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 按钮波纹效果 */
button {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.8s cubic-bezier(0.4, 0, 0.2, 1) ease-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes ripple-animation {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 书签同步功能样式 */
.bookmarks-section {
    color: white;
}

.sync-options {
    margin-bottom: 20px;
}

.sync-section {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.sync-section.hidden {
    display: none;
}

.cloud-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.cloud-actions button {
    flex: 1;
}

.bookmarks-stats {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.bookmarks-stats p {
    margin: 5px 0;
    font-size: 14px;
}

.recent-bookmarks {
    margin-top: 20px;
}

.recent-bookmarks h4 {
    margin-bottom: 10px;
    font-size: 14px;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
}

.recent-bookmarks ul {
    list-style-type: none;
    padding-left: 0;
}

.recent-bookmarks li {
    margin-bottom: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.recent-bookmarks li:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.recent-bookmarks a {
    color: white;
    text-decoration: none;
    font-size: 12px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-bookmarks a:hover {
    text-decoration: underline;
}

input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    margin-bottom: 12px;
}

/* 响应式布局支持 */
@media (max-width: 480px) {
    .container {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    header {
        padding: 15px 10px;
    }
    
    header h1 {
        font-size: 18px;
    }
    
    .tab-btn {
        padding: 10px 3px;
        font-size: 11px;
    }
    
    .tab-content {
        padding: 12px;
        max-height: calc(90vh - 120px);
    }
    
    textarea, input[type="text"], input[type="datetime-local"], select {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    button {
        padding: 8px 14px;
        font-size: 11px;
        margin-right: 6px;
        margin-bottom: 10px;
    }
    
    .tool-section h3 {
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .container {
        width: 98%;
        border-radius: 0;
    }
    
    .tab-btn {
        padding: 8px 2px;
        font-size: 10px;
    }
    
    header {
        padding: 12px 8px;
    }
    
    header h1 {
        font-size: 16px;
    }
    
    .tab-content {
        padding: 10px;
    }
    
    textarea, input[type="text"], input[type="datetime-local"], select {
        padding: 8px;
        font-size: 11px;
    }
    
    button {
        padding: 7px 12px;
        font-size: 10px;
        margin-right: 4px;
        margin-bottom: 8px;
    }
    
    .tool-section h3 {
        font-size: 14px;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        width: 500px;
        max-height: 95vh;
    }
    
    header {
        padding: 10px;
    }
    
    header h1 {
        font-size: 16px;
    }
    
    .tab-btn {
        padding: 8px 3px;
        font-size: 11px;
    }
    
    .tab-content {
        padding: 10px;
        max-height: calc(95vh - 80px);
    }
    
    textarea {
        height: 70px;
    }
}

/* 微信登录样式 */
.wechat-login-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.qrcode-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 20px;
}

.qrcode-display.hidden {
    display: none;
}

.qrcode-display p {
    margin-bottom: 20px;
    color: white;
    font-size: 14px;
}

#qrcode-img {
    width: 200px;
    height: 200px;
    margin: 15px 0;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qrcode-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-status {
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 13px;
    color: white;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.login-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    width: 100%;
}

.login-success.hidden {
    display: none;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.login-success h4 {
    margin-bottom: 15px;
    color: white;
    font-size: 18px;
}

.user-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    width: 100%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.user-info p {
    margin: 8px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.user-info strong {
    color: white;
    font-weight: 600;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}